package tagdb.model;

/**
 * <b>Peptide</b>
 * <p>
 * Model class for a peptide: Contains sequence, charge state and precursor m/z.
 * </p>
 *
 * @author T.Muth
 */
public class Peptide {

    /**
     * Holds peptide sequence.
     */
    private String sequence;

    /**
     * Holds charge state.
     */
    private int charge;

    /**
     * Holds precursor m/z.
     */
    private double precursorMz;

    /**
     * Constructs the peptide object.
     *
     * @param sequence    The peptide sequence.
     * @param charge      The charge state.
     * @param precursorMz The precursor m/z.
     */
    public Peptide(String sequence, int charge, double precursorMz) {
        this.sequence = sequence;
        this.charge = charge;
        this.precursorMz = precursorMz;
    }

    /**
     * Returns the peptide sequence.
     *
     * @return the sequence
     */
    public String getSequence() {
        return sequence;
    }

    /**
     * Returns the charge.
     *
     * @return the charge
     */
    public int getCharge() {
        return charge;
    }

    /**
     * Returns the precursor mass.
     *
     * @return the precursorMz
     */
    public double getPrecursorMz() {
        return precursorMz;
    }
}
